export default [
  {
    path: '/login',
    component: './Login',
    layout: false,
    hideInMenu: true,
  },
  {
    name: 'userCenter',
    path: '/account',
    component: './Account',
    hideInMenu: true,
  },
  {
    name: 'welcome',
    icon: 'home',
    path: '/welcome',
    component: './Welcome',
  },
  {
    key: 'report',
    name: 'report',
    icon: 'dashboard',
    path: '/report',
    access: 'adminRouteFilter',
    routes: [
      // {
      //   key: 'report_registstat',
      //   name: 'regist',
      //   path: '/report/registstat',
      //   component: './RegistStat',
      //   access: 'adminRouteFilter',
      // },
      {
        key: 'report_userstat',
        name: 'userStat',
        path: '/report/userstat',
        component: './UserStat',
        access: 'adminRouteFilter',
      },
      {
        key: 'report_userstatsale',
        name: 'userStatSale',
        path: '/report/userstatsale',
        component: './UserStatSale',
        access: 'adminRouteFilter',
      },
      {
        key: 'report_userstatretain',
        name: 'userStatRetain',
        path: '/report/userstatretain',
        component: './UserStatRetain',
        access: 'adminRouteFilter',
      },
      {
        key: 'report_onlineipstat',
        name: 'onlineIpStat',
        path: '/report/onlineipstat',
        component: './OnlineIpStat',
        access: 'adminRouteFilter',
      },
      {
        key: 'report_userstatchart',
        name: 'userStatChart',
        path: '/report/userstatchart',
        component: './UserStatChart',
        access: 'adminRouteFilter',
      },
      {
        component: './Exception/404',
      },
    ],
  },
  {
    key: 'customer',
    name: 'customer',
    icon: 'user',
    path: '/customer',
    access: 'adminRouteFilter',
    routes: [
      {
        path: '/customer',
        redirect: '/customer/user',
      },
      {
        key: 'user_list',
        name: 'user',
        path: '/customer/user',
        component: './User',
        access: 'adminRouteFilter',
      },
      {
        key: 'user_update',
        name: 'updateUser',
        path: '/customer/user/update/:id',
        component: './User/UserForm',
        access: 'adminRouteFilter',
        hideInMenu: true,
      },
      {
        key: 'userloginlog_list',
        name: 'userRegistLog',
        path: '/customer/userregistlog',
        component: './UserRegistLog',
        access: 'adminRouteFilter',
      },
      {
        key: 'userloginlog_loginlist',
        name: 'userLoginLog',
        path: '/customer/userloginlog',
        component: './UserLoginLog',
        access: 'adminRouteFilter',
      },
      {
        key: 'ticket_list',
        name: 'ticket',
        path: '/customer/ticket',
        component: './Ticket',
        access: 'adminRouteFilter',
      },
      {
        key: 'tickettype_list',
        name: 'ticketType',
        path: '/customer/tickettype',
        component: './TicketType',
        access: 'adminRouteFilter',
      },
      {
        component: './Exception/404',
      },
    ],
  },
  {
    key: 'server',
    name: 'server',
    icon: 'database',
    path: '/server',
    access: 'adminRouteFilter',
    routes: [
      {
        path: '/server',
        redirect: '/server/vpnserver',
      },
      {
        key: 'vpnservermonitor_list',
        name: 'vpnserverMonitor',
        path: '/server/vpnservermonitor',
        component: './VpnServerMonitor',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpnserver_list',
        name: 'vpnserver',
        path: '/server/vpnserver',
        component: './VpnServer',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpnroute_list',
        name: 'vpnRoute',
        path: '/server/vpnroute',
        component: './VpnRoute',
        access: 'adminRouteFilter',
      },
      // {
      //   key: 'vpnservermonitor_grouplist',
      //   name: 'vpngroupMonitor',
      //   path: '/server/vpngroupmonitor',
      //   component: './VpnGroupMonitor',
      //   access: 'adminRouteFilter',
      // },
      {
        key: 'checktask_list',
        name: 'checktask',
        path: '/server/checktask',
        component: './CheckTask',
        access: 'adminRouteFilter',
      },
      {
        key: 'idcapievent_list',
        name: 'idcapievent',
        path: '/server/idcapievent',
        component: './IdcApiEvent',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpngroup_list',
        name: 'vpngroup',
        path: '/server/vpngroup',
        component: './VpnGroup',
        access: 'adminRouteFilter',
      },
      // {
      //   key: 'vpnserver_blockediplist',
      //   name: 'vpnserverblockedip',
      //   path: '/server/vpnserverblockedip',
      //   component: './VpnServerBlockedIp',
      //   access: 'adminRouteFilter',
      // },
      {
        key: 'checkschedule_list',
        name: 'checkschedule',
        path: '/server/checkschedule',
        component: './CheckSchedule',
        access: 'adminRouteFilter',
      },
      {
        key: 'checkserver_list',
        name: 'checkserver',
        path: '/server/checkserver',
        component: './CheckServer',
        access: 'adminRouteFilter',
      },
      // {
      //   key: 'vpnserverdeploy_list',
      //   name: 'vpnserverdeploy',
      //   path: '/server/vpnserverdeploy',
      //   component: './VpnServerDeploy',
      //   access: 'adminRouteFilter',
      // },
      {
        key: 'serversupplier_list',
        name: 'serversupplier',
        path: '/server/serversupplier',
        component: './ServerSupplier',
        access: 'adminRouteFilter',
      },
      {
        key: 'deploy_list',
        name: 'deploy',
        path: '/server/deploy',
        component: './Deploy',
        access: 'adminRouteFilter',
      },
      {
        key: 'deployconfig_list',
        name: 'deployconfig',
        path: '/server/deployconfig',
        component: './DeployConfig',
        access: 'adminRouteFilter',
      },
      {
        key: 'broadcastip_list',
        name: 'broadcastip',
        path: '/server/broadcastip',
        component: './BroadcastIp',
        access: 'adminRouteFilter',
      },
      {
        key: 'ipblacklist_list',
        name: 'ipblacklist',
        path: '/server/ipblacklist',
        component: './IpBlacklist',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpngrouptrafficmonitor_list',
        name: 'vpngroupTrafficMonitor',
        path: '/server/vpngrouptrafficmonitor',
        component: './VpnGroupTrafficMonitor',
        access: 'adminRouteFilter',
      },
      {
        key: 'cdndomain_list',
        name: 'cdndomain',
        path: '/server/cdndomain',
        component: './CdnDomain',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpnservercheck_list',
        name: 'vpnservercheck',
        path: '/server/vpnserverchecklog',
        component: './VpnServerCheckLog',
        access: 'adminRouteFilter',
      },
      {
        key: 'vpnserverchecker_list',
        name: 'vpnserverchecker',
        path: '/server/vpnserverchecker',
        component: './VpnServerChecker',
        access: 'adminRouteFilter',
      },
      // {
      //   key: 'idcorder_list',
      //   name: 'idcorder',
      //   path: '/server/idcorder',
      //   component: './IdcOrder',
      //   access: 'adminRouteFilter',
      // },
      {
        component: './Exception/404',
      },
    ],
  },
  {
    key: 'buisness',
    name: 'buisness',
    icon: 'robot',
    path: '/buisness',
    access: 'adminRouteFilter',
    routes: [
      {
        path: '/buisness',
        redirect: '/buisness/product',
      },
      {
        key: 'product_list',
        name: 'product',
        path: '/buisness/product',
        component: './Product',
        access: 'adminRouteFilter',
      },
      {
        key: 'productsetting_list',
        name: 'productSetting',
        path: '/buisness/productsetting/*',
        component: './ProductSetting',
        access: 'adminRouteFilter',
      },
      // {
      //   key: 'nodetemplate_list',
      //   name: 'nodeTemplate',
      //   path: '/buisness/nodetemplate',
      //   component: './NodeTemplate',
      //   access: 'adminRouteFilter',
      // },
      // {
      //   key: 'globalparam_list',
      //   name: 'globalParam',
      //   path: '/buisness/productsetting/globalparam',
      //   component: './GlobalParam',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      // {
      //   key: 'productparam_list',
      //   name: 'productParam',
      //   path: '/buisness/productsetting/productparam',
      //   component: './ProductParam',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      // {
      //   key: 'areafilter_list',
      //   name: 'areaFilter',
      //   path: '/buisness/productsetting/areafilter',
      //   component: './AreaFilter',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      // {
      //   key: 'smartmodeconfig_list',
      //   name: 'smartmodeConfig',
      //   path: '/buisness/productsetting/smartmodeconfig',
      //   component: './SmartModeConfig',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      // {
      //   key: 'tip_list',
      //   name: 'tip',
      //   path: '/buisness/productsetting/tip',
      //   component: './Tip',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      // {
      //   key: 'tag_list',
      //   name: 'tag',
      //   path: '/buisness/productsetting/tag',
      //   component: './Tag',
      //   access: 'adminRouteFilter',
      //   hideInMenu: true,
      //   layout: false,
      // },
      {
        key: 'announce_list',
        name: 'announce',
        path: '/buisness/announce',
        component: './Announce',
        access: 'adminRouteFilter',
      },
      {
        key: 'upgradepackage_list',
        name: 'upgradePackage',
        path: '/buisness/upgradepackage',
        component: './UpgradePackage',
        access: 'adminRouteFilter',
      },
      {
        key: 'ad_list',
        name: 'ad',
        path: '/buisness/ad',
        component: './Ad',
        access: 'adminRouteFilter',
      },
      {
        key: 'servicetype_list',
        name: 'serviceType',
        path: '/buisness/servicetype',
        component: './ServiceType',
        access: 'adminRouteFilter',
      },
      {
        key: 'serviceset_list',
        name: 'serviceSet',
        path: '/buisness/serviceset',
        component: './ServiceSet',
        access: 'adminRouteFilter',
      },
      {
        key: 'order_list',
        name: 'order',
        path: '/buisness/order',
        component: './Order',
        access: 'adminRouteFilter',
      },
      {
        key: 'order_detail',
        name: 'orderDetail',
        path: '/buisness/order/detail/:id',
        component: './Order/OrderDetail',
        access: 'adminRouteFilter',
        hideInMenu: true,
      },
      {
        key: 'geoip_list',
        name: 'geoip',
        path: '/buisness/geoip',
        component: './Geoip',
        access: 'adminRouteFilter',
      },
      {
        component: './Exception/404',
      },
    ],
  },
  {
    key: 'system',
    name: 'system',
    icon: 'setting',
    path: '/system',
    access: 'adminRouteFilter',
    routes: [
      {
        path: '/system',
        redirect: '/system/admin',
      },
      {
        key: 'admin_list',
        name: 'admin',
        path: '/system/admin',
        component: './Admin',
        access: 'adminRouteFilter',
      },
      {
        key: 'admin_create',
        name: 'createAdmin',
        path: '/system/admin/create',
        component: './Admin/Form',
        access: 'adminRouteFilter',
        hideInMenu: true,
      },
      {
        key: 'admin_update',
        name: 'updateAdmin',
        path: '/system/admin/update/:id',
        component: './Admin/Form',
        access: 'adminRouteFilter',
        hideInMenu: true,
      },
      {
        component: './Exception/404',
      },
    ],
  },
  {
    path: '/exception',
    hideInMenu: true,
    routes: [
      {
        path: '/exception/403',
        component: './Exception/403',
      },
      {
        path: '/exception/404',
        component: './Exception/404',
      },
      {
        path: '/exception/500',
        component: './Exception/500',
      },
      {
        path: '/exception/error/404',
        component: './Exception/Error/404',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './Exception/404',
  },
];
